package com.hjm.project.terminal.activate.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.terminal.activate.mapper.FeignActivateMapper;
import com.hjm.project.terminal.activate.domain.FeignActivate;
import com.hjm.project.terminal.activate.service.IFeignActivateService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * activateService业务层处理
 * 
 * @author maker-platform
 * @date 2021-03-10
 */
@Service
public class FeignActivateServiceImpl implements IFeignActivateService 
{
    @Resource
    private FeignActivateMapper feignActivateMapper;

    /**
     * 查询activate
     * 
     * @param id activateID
     * @return activate
     */
    @Override
    public FeignActivate selectFeignActivateById(Integer id)
    {
        return feignActivateMapper.selectFeignActivateById(id);
    }

    /**
     * 查询activate列表
     * 
     * @param feignActivate activate
     * @return activate
     */
    @Override
    public List<FeignActivate> selectFeignActivateList(FeignActivate feignActivate)
    {
        return feignActivateMapper.selectFeignActivateList(feignActivate);
    }

    /**
     * 新增activate
     * 
     * @param feignActivate activate
     * @return 结果
     */
    @Override
    public int insertFeignActivate(FeignActivate feignActivate)
    {
        return feignActivateMapper.insertFeignActivate(feignActivate);
    }

    /**
     * 修改activate
     * 
     * @param feignActivate activate
     * @return 结果
     */
    @Override
    public int updateFeignActivate(FeignActivate feignActivate)
    {
        return feignActivateMapper.updateFeignActivate(feignActivate);
    }

    /**
     * 删除activate对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFeignActivateByIds(String ids)
    {
        return feignActivateMapper.deleteFeignActivateByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除activate信息
     * 
     * @param id activateID
     * @return 结果
     */
    @Override
    public int deleteFeignActivateById(Integer id)
    {
        return feignActivateMapper.deleteFeignActivateById(id);
    }
}
